/**
 * This class handles the professions defined for the current character.
 * Takes four arguments (example from my char Klakaballe @ L80):
 * ProfessionName			= Enchanting
 * ProfessionKeyReference	= ?!?!?!
 * ProfessionCurrentValue	= 450
 * ProfessionCurrentCap		= 441
 * 
 * @author vegard.aasen
 * @since 21.06.2010
 */

package character;

import java.util.EnumSet;

public class WowCharacterProfession {
	
	private EnumSet<Profession> profession;
	
	private String professionName;
	private String curProfessionCap; //Well, L80 = 450, L70 = 375.. L85..??!?!
	private String professionKeyReference;
	private String curProfessionValue; // Current status for the guy.. E.g Klakaballe is @ 441 Enchanting..
	
	//Resetting all the shizzle - where needed!!!!
	public void reset() {
		profession = EnumSet.noneOf(Profession.class);
	}
	
	/**
	 * @param profession the characters current profession
	 * @return does the currect character got some professions..???
	 */
	public boolean hasGotSomeProfessions(Profession profession) {
		return this.profession.contains(profession);
	}

	public String getProfessionName() {
		return professionName;
	}

	public void setProfessionName(String professionName) {
		this.professionName = professionName;
	}

	public String getCurProfessionCap() {
		return curProfessionCap;
	}

	public void setCurProfessionCap(String curProfessionCap) {
		this.curProfessionCap = curProfessionCap;
	}

	public String getProfessionKeyReference() {
		return professionKeyReference;
	}

	public void setProfessionKeyReference(String professionKeyReference) {
		this.professionKeyReference = professionKeyReference;
	}

	public String getCurProfessionValue() {
		return curProfessionValue;
	}

	public void setCurProfessionValue(String curProfessionValue) {
		this.curProfessionValue = curProfessionValue;
	}	
}
